<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #form {
            display: flex;
            flex-direction: column;
        }

        #form div {
            display: flex;
            align-items: flex-start;
            flex: 0 0 30px;
            /* height: 30px; */
        }

        #form div label {
            flex: 0 0 100px;
            text-align: right;
            outline: none;
        }

    </style>
</head>
<body>
    <form action="">
        <div id="form">
            <div>
                <label for="">姓名</label>
                <input type="text">
            </div>
            <div>
                <label for="">输入密码</label>
                <input type="password">
            </div>
            <div>
                <label for="">再次重新输入密码</label>
                <input type="password">
            </div>
        </div>
    </form>
</body>
</html>